package lesson.myicharstream;

import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;

public class CharStreamDemo1 {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("Day12\\src\\lesson\\myicharstream\\b.txt");

//        char[] chars = {97,98,99,100,101};
//        fw.write(chars);
//        fw.close();

        String line = "黑马程序员abc";
        fw.write(line,0,2);
        fw.close();
    }
}
